﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Microsoft.SharePoint;

namespace PepsiCo.Common.Entities
{
    [Serializable]
    public class CustomQuickLaunchItemDefinition
    {
        public string Title { get; set; }
        public string Hyperlink { get; set; }
        public bool IsHeading { get; set; }

        [XmlArray("Links")]
        [XmlArrayItem("Link")]
        public List<CustomQuickLaunchItemDefinition> Links { get; set; }

        public CustomQuickLaunchItemDefinition()
        {
            Links = new List<CustomQuickLaunchItemDefinition>();
        }
    }

    [XmlRoot("CustomQuickLaunch")]
    public class CustomQuickLaunchItemDefinitionCollection : List<CustomQuickLaunchItemDefinition>
    {
        public CustomQuickLaunchItemDefinitionCollection()
        {

        }
    }
}
